<template>
	<view>
		<view style="height: 30rpx;"></view>
		<u-card :title="'货物名称:'+item.name" v-for="(item,index) in list" :key="index">
				<view class="" slot="body">
					<view>余吨：{{item.RemainTon}}</view>
					<view>余额：{{item.RemainCash}} </view>
				</view>
			
			</u-card>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		mounted() {
			this.$ajax.get({
				url:"/index/getGoodsrRemainder"
			}).then((res)=>{
				this.list = res.data; 
			})
		}
	}
</script>

<style lang="scss">
.u-card-wrap { 
		background-color: $u-bg-color;
		padding: 1px;
	}
	
	.u-body-item {
		font-size: 32rpx;
		color: #333;
		padding: 20rpx 10rpx;
	}
		
	.u-body-item image {
		width: 120rpx;
		flex: 0 0 120rpx;
		height: 120rpx;
		border-radius: 8rpx;
		margin-left: 12rpx;
	}
</style>
